<table id="matrix">
	<?php
	$numbers = $this->numbers;
	$count_summary = 0;
	if(($numbers['ranges'][0]['range_top'] - $numbers['ranges'][0]['range_bot']) < 10){
		var_dump($numbers);	
	}
	else{
		for($j=0;$j<5; $j++){
			echo "<tr>";
			for($i=0;$i<10;$i++){
				$id = (int)((string)$j.(string)$i);
				$numb = $numbers['ranges'][$id];
				
				echo('<td><div class="progressbar" id="'.$id.'"></div><div class="range" rel=\'{"id":"'.$id.'","count":"'.$numb['count'].'","range_top":"' .$numb['range_top'].'","range_bot":"'.$numb['range_bot'].'"}\'>'.$numb['range_top'] . ' ' . $numb['range_bot'].'</div></td>');
			}
			echo "</tr>";
		}	
	}
	
	?>	
</table>
<?php echo $this->partial('/index/js/script.phtml', array());?>